package com.letu.jwt.model;

import com.letu.annotation.annotation.vo.VoInfo;
import com.letu.annotation.model.BaseVoGroupClass;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * AuthInfo
 *
 * @author ligang
 * @date 2020年03月31日21:43:31
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "认证信息")
@VoInfo(groups = {BaseVoGroupClass.all.class})
public class AuthInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "令牌")
    private String token;
    @ApiModelProperty(value = "刷新令牌")
    private String refreshToken;
//    @ApiModelProperty(value = "用户名")
//    private String name;
    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "游戏标识")
    private String gameTag;
    /**
     * 是否超级管理员 1是0否
     */
//    @ApiModelProperty(value = "是否超级管理员 1是0否")
//    private Integer isSuperAdmin;

    @ApiModelProperty(value = "过期时间（秒）")
    private long expire;
    @ApiModelProperty(value = "到期时间")
    private LocalDateTime expiration;
    @ApiModelProperty(value = "有效期")
    private Long expireMillis;


}
